<?php
use think\Route;
// restful风格API

Route::resource(':version/app','app/:version.APP');
Route::resource(':version/user','app/:version.User');
Route::resource(':version/sign','app/:version.Sign');
Route::resource(':version/task','app/:version.Task');
Route::resource(':version/prop','app/:version.Prop');
Route::resource(':version/house','app/:version.House');
Route::resource(':version/block','app/:version.Block');
Route::resource(':version/room','app/:version.Room');
Route::resource(':version/withdraw','app/:version.Withdraw');
Route::resource(':version/card','app/:version.Card');
Route::resource(':version/video','app/:version.Video');



//AppController
//登录
Route::rule(':version/login','app/:version.App/login');
//微信验证
Route::rule(':version/wxcheck','app/:version.App/wxCheck');
//测试
Route::rule(':version/test','app/:version.App/test');
Route::rule(':version/socket','app/:version.App/socket');


//SignController
//签到
Route::rule(':version/signs','app/:version.Sign/signs');




//UserController
//首页获取用户信息
Route::rule(':version/getuserinfo','app/:version.User/getUserInfo');
//分享得卡片
Route::rule(':version/share','app/:version.User/share');
//重置免费次数
Route::rule(':version/resetfreenumber','app/:version.User/resetFreeNumber');
//用户中心
Route::rule(':version/usercenter','app/:version.User/userCenter');
//添加积分
Route::rule(':version/addpoint','app/:version.User/addPoint');
//获取转盘
Route::rule(':version/getluck','app/:version.User/getLuck');
//抽奖
Route::rule(':version/luck','app/:version.User/luck');
//根据Id获取别人信息
Route::rule(':version/getuserdetails','app/:version.User/getUserDetails');
//获取历史人物卡片
Route::rule(':version/gethistory','app/:version.User/getHistory');
//新用户
Route::rule(':version/isnew','app/:version.User/isNew');
//赠送历史人物卡片
Route::rule(':version/givehistory','app/:version.User/giveHistory');
//领取卡片
Route::rule(':version/recive','app/:version.User/recive');
//同意求赠
Route::rule(':version/agreegive','app/:version.User/agreeGive');
//历史人物兑换奖励
Route::rule(':version/chargereward','app/:version.User/chargeReward');


//TaskController
//获取任务
Route::rule(':version/tasklist','app/:version.Task/taskList');
//领取奖励
Route::rule(':version/receivereward','app/:version.Task/receiveReward');



//PropController
//道具列表
Route::rule(':version/prop','app/:version.Prop/index','OPTIONS');
//兑换道具
Route::rule(':version/charge','app/:version.Prop/charge');



//HouseController
//闯关模式获取题目
Route::rule(':version/blockade','app/:version.House/blockade');




//BlockController
//闯关模式获取信息
Route::rule(':version/blockinfo','app/:version.Block/blockInfo');
//闯关模式结算
Route::rule(':version/blockfight','app/:version.Block/blockFight');
//使用复活卡
Route::rule(':version/userevive','app/:version.Block/useRevive');
//闯关模式分享
Route::rule(':version/blockshare','app/:version.Block/blockShare');
//闯关排行
Route::rule(':version/blockrank','app/:version.Block/blockRank');
//积分排行
Route::rule(':version/pointrank','app/:version.Block/pointRank');



//RoomController
//创建房间
Route::rule(':version/foundroom','app/:version.Room/foundRoom');
//获取对战题目
Route::rule(':version/gethouse','app/:version.Room/getHouse');
//对战结算
Route::rule(':version/settle','app/:version.Room/settle');



//WithdrawController
//提现
Route::rule(':version/enterprisepay','app/:version.Withdraw/EnterprisePay');
//回调地址
Route::rule(':version/notifyurl','app/:version.Withdraw/notifyUrl');



//CardController
//上传音频
Route::rule(':version/saveaudio','app/:version.Card/saveAudio');



//VideoConrtroller
//video列表
Route::rule(':version/videolist','app/:version.Video/VideoList');
//video详情
Route::rule(':version/videodetail','app/:version.Video/VideoDetail');
//video点赞
Route::rule(':version/videoclick','app/:version.Video/VideoClick');
//video留言
Route::rule(':version/message','app/:version.Video/message');